'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
    console.log(123, this.app.jwt.verify(ctx.request.header.authorization.split('Bearer ')[1], this.app.config.jwt.secret))
  }
}

module.exports = HomeController;
